package com.tywj.panda.customer.usercenter.route

import android.app.Activity
import com.tywj.panda.customer.usercenter.center.UserNickNameActivity
import com.tywj.lib.core.common.view.BaseFragment
import com.tywj.lib.route.RouteNavigation


/**
 * @desc 我的个人中心组件路由
 * @author June Yang
 * @date 2020/5/9
 */
object UserCenterRoute {

    // 我的组件服务
    const val USER_SERVICE = "/userCenter/userService"


    //设置
    const val USER_SETTINGS = "/userCenter/settings"

    //关于我们
    const val USER_ABOUT = "/userCenter/about"

    //到人个信息
    const val USER_CENTER_INFO = "/userCenter/userCenter"

    const val USER_NICKNAME = "/userCenter/userNickName"

    //用户反馈
    const val USER_FEEDBACK = "/userCenter/userFeedBack"

    //到设置
    fun toSetting(): RouteNavigation {
        return RouteNavigation(USER_SETTINGS)
    }

    //到个人信息
    fun toUserCenterInfo(): RouteNavigation {
        return RouteNavigation(USER_CENTER_INFO)
    }

    //到个人信息
    fun toNickName(nickName: String = ""): RouteNavigation {
        return RouteNavigation(USER_NICKNAME).param(UserNickNameActivity.PARAMS_NICK_NAME, nickName)
    }

    //到用户反馈
    fun toUserFeedBack(): RouteNavigation {
        return RouteNavigation(USER_FEEDBACK)
    }

    //到关于我们
    fun toAboutUs(): RouteNavigation {
        return RouteNavigation(USER_ABOUT)
    }
}